package Weapons;

import com.addedstuff.Brianmodbase;

import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.IArmorTextureProvider;

public class OBArmor extends ItemArmor implements IArmorTextureProvider{

    private Object iconIndex;

    public OBArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial,
                    int par3, int par4) {
            super(par1, par2EnumArmorMaterial, par3, par4);
            // TODO Auto-generated constructor stub
    }

    /*public String getTextureFile()
    {
            return "/Brianmodbase/textures/items.png";
    }*/
    
    public String getArmorTextureFile(ItemStack itemstack)
    {
            if(itemstack.itemID == Brianmodbase.ObH.itemID || itemstack.itemID == Brianmodbase.ObC.itemID || itemstack.itemID == Brianmodbase.ObB.itemID)
            {
                    return "/mods/Brianmodbase/textures/items/Obsidian_2.fw.png";
            }
            if(itemstack.itemID == Brianmodbase.ObL.itemID)
            {
                    return "/mods/Brianmodbase/textures/items/Obsidian_1.fw.png";
            }
            
            else return null;
            //return "/Brianmodbase/textures/items";
    }
    
public void registerIcons(IconRegister iconReg) 
{
            if(itemID == Brianmodbase.ObB.itemID)
            {
                    itemIcon = iconReg.registerIcon("Brianmodbase:Obsidian boots");
            }
            else if(itemID == Brianmodbase.ObL.itemID)
            {
                    itemIcon = iconReg.registerIcon("Brianmodbase:Obsidian Legs");
            }
            else if(itemID == Brianmodbase.ObC.itemID)
            {
                    itemIcon = iconReg.registerIcon("Brianmodbase:Obsidian Chest");
            }
            else if(itemID == Brianmodbase.ObH.itemID)
            {
                    itemIcon = iconReg.registerIcon("Brianmodbase:Obsidian helmet");
            }
    }
}
